package cn.edu.sgu.www.mhxysy.service.potency.impl;

import cn.edu.sgu.www.mhxysy.entity.potency.PotencyFruitPatternType;
import cn.edu.sgu.www.mhxysy.mapper.potency.PotencyFruitPatternTypeMapper;
import cn.edu.sgu.www.mhxysy.service.potency.PotencyFruitPatternTypeService;
import cn.edu.sgu.www.mhxysy.vo.potency.PotencyFruitPatternTypeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class PotencyFruitPatternTypeServiceImpl implements PotencyFruitPatternTypeService {

    private final PotencyFruitPatternTypeMapper potencyFruitPatternTypeMapper;

    @Autowired
    public PotencyFruitPatternTypeServiceImpl(PotencyFruitPatternTypeMapper potencyFruitPatternTypeMapper) {
        this.potencyFruitPatternTypeMapper = potencyFruitPatternTypeMapper;
    }

    @Override
    public List<PotencyFruitPatternType> selectAll() {
        return potencyFruitPatternTypeMapper.selectList(null);
    }

    @Override
    public PotencyFruitPatternType selectById(Integer id) {
        return potencyFruitPatternTypeMapper.selectById(id);
    }

    @Override
    public List<PotencyFruitPatternTypeVO> selectDetails(String roleId, Integer schemaId) {
        return potencyFruitPatternTypeMapper.selectDetails(roleId, schemaId);
    }

}